#include "proc.h"
#include<unistd.h>
#define bar 102
#define sign '='
void process()
{
    int i = 0;
    char arr[] = "|/-\\";
    char  Bar[bar] = {0};
    while(i < 101)
    {
        printf("[%-100s][%d%%][%c]\r",Bar,i,arr[i%4]);
        fflush(stdout);
        // sleep(1);
        usleep(100000);
        Bar[i++] = sign;
        if(i != 100)
          Bar[i] = '>';
    }
    printf("\n");
}


